import request from '@/utils/request'
export function queryTreeList(data) {
  return request({
    url: '/getHosTreeList',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function queryHospitalId(data) {
  return request({
    url: '/hospitalId',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function queryUsers1(data) {
  return request({
    url: '/users1',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function postSavehospital(data) {
  return request({
    url: '/savehospital',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function postUpdatehospital(data) {
  return request({
    url: '/hospitals/update',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
